import {Component} from 'react';
import axios from 'axios';
class App extends Component{
    render(){
        return(
            <div>
                <h1>反向代理跨域</h1>
                <button onClick={()=>{
                    axios.get('/maoyan/api/mmdb/movie/v3/list/hot.json?ct=郑州&ci=73&channelId=4').then(res=>{
                        console.log(res)
                    })
                }}>获取猫眼电影</button>
                <button onClick={()=>{
                    axios.get('/douyu/api/cate/recList').then(res=>{
                        console.log(res)
                    })
                }}>获取斗鱼分类</button>
                <button onClick={()=>{
                    axios('/douyu/api/home/mix').then(res=>{
                        console.log(res)
                    })
                }}>斗鱼房间</button>
            </div>
        )
    }
}
export default App;